import {getMonthFirstDate, getCurrentDate} from '@/util/date'
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "dialogClickModal": false,
  "searchMenuSpan": 6,
  searchShow: true,
  searchLabelWidth: 120,
  menu:false,
  "column": [
	  {
      "type": "select",
      "label": "项目名称",
      "prop": "projectName",
      search: true,
      dicData: [
        {
          label: '广东省税务局',
          value: '0'
        }
      ],
      searchValue: '0',
      "span": 12
    },	 
    {
      "type": "select",
      "label": "建筑",
      "prop": "pinyin",
      search: true,
      hide: true,
      dicData: [
        {
          label: '潭村办公楼',
          value: '0'
        }
      ],
      searchValue: '0',
      showColumn:false,
      "span": 12
    },
    {
      "type": "select",
      "label": "楼层位置",
      "prop": "position",
      search: true,
      hide: true,
      dicUrl: '/admin/dict/type/energy_device_position',
      showColumn:false,
      "span": 12
    },
    {
      "type": "select",
      "label": "仪表产品",
      dicUrl: '/admin/dict/type/energy_equipment_type',
      "prop": "meterProdName",
      search: true,
      searchValue: '多功能三相电表',
      searchslot: true,
      "span": 7
    },	  {
      "type": "select",
      "label": "项目仪表",
      "prop": "meterName",
      searchslot: true,
      search: true,
      "span": 7
    },	  {
      "type": "select",
      "label": "仪表功能点",
      "prop": "paramName",
      searchslot: true,
      search: true,
      dicUrl: '/admin/dict/type/energy_point_type',
      "span": 24
    },	  {
      "type": "date",
      "label": "采集时间",
      "prop": "time",
      // search: true,
      "span": 24
    },	  {
      "type": "input",
      "label": "仪表读数（kw.h）",
      "prop": "reading",
      "span": 24
    },{
      label: "采集日期",
      prop: "dateRange",
      type: "date",
      // searchSpan: 8,
      searchRange: true,
      search: true,
      hide: true,
      display: false,
      searchValue: [getCurrentDate('year'), getCurrentDate('year')],
      valueFormat: "yyyy-MM-dd",
      showColumn: false,
    },	  {
      "type": "select",
      "label": "排序",
      // search: true,
      hide: true,
      showColumn: false,
      dicData: [
        { label: '升序', value: '0' },
        { label: '降序', value: '1' },
      ],
      "prop": "attention",
      "span": 24
    }  ]
}
